home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / HPXL / ResourceDefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  2.6 KB  |  92 lines  |  [TEXT/MPS ]

  1. /*=============================================================================================
  2.  
  3.     Res FILE:        ResourceDefines.r
  4.  
  5.     VERSION:        1.0d1
  6.  
  7.     COPYRIGHT:        (c) 1993-1994 Apple Computer Inc.
  8.                         All rights reserved.
  9.  
  10.     PURPOSE:        This file contains constant defines for resources in the Resources.r
  11.                     file.  This file is included by Resources.r and the HP7570A driver's
  12.                     C files.
  13.  
  14.     HISTORY:    Date            By            Description
  15.                 -----            ---            ----------------------------------
  16.                 1/20/92            Harita        Initial release
  17.                 9/07/93            Harita        gx-ified.
  18.                12/20/93            dmh            Sync'd up for GX 1.0b3.
  19.                 8/28/94            dmh            Sync'd up for GX 1.0.1.
  20.  
  21. ==============================================================================================*/
  22.  
  23. /* ============= Constants describing the specifics of the HP7570A driver file ============= */
  24.  
  25. #define    kDriverName                "HPXL"
  26. #define    kDriverCreatorType         'scXL'
  27. #define    kDriverFileType            'pdvr'
  28.  
  29.  
  30. /* ============= Well Known (from Print Manager) Resource ID Constants ============= */
  31.  
  32. #define    kOwnedIDMask             (-28672)
  33.  
  34.  
  35. /* ============= Resource ID's of HPXL icons ============= */
  36.  
  37. #define    kDesktopIconID         gxPrintingDriverBaseID
  38.  
  39.  
  40. /* ============= 'STR#' Resource ID's ============= */
  41.  
  42. #define    kHPXLCmndStringsID        gxPrintingDriverBaseID + 1
  43. #define    kMiscStringsID            gxPrintingDriverBaseID + 2
  44.  
  45.  
  46. /* ============= Index Constants into the  kHPXLCmndStringsID 'STR#' ============= */
  47.  
  48. #define    kInitIdx         1 
  49. #define    kSetPenIdx         2 
  50. #define    kSetWindowIdx    3 
  51. #define    kLineIdx        4 
  52. #define    kRectIdx         5 
  53. #define    kFilledRectIdx  6 
  54. #define    kInitPolyIdx    7 
  55. #define    kDataIdx        8 
  56. #define    kCommaIdx        9 
  57. #define    kTermPolyIdx    10 
  58. #define    kInitLinesIdx  11 
  59. #define    kTermLinesIdx  12 
  60. #define    kTermPolysIdx  13 
  61. #define    kFillIdx       14 
  62. #define    kEdgeIdx       15 
  63. #define    kTermGlyphIdx  16 
  64. #define    kTermPageIdx   17 
  65. #define    kSetPenWidthIdx 18 
  66. #define    kSetPenColorIdx 19 
  67.  
  68. #define    kHPXLCmndStringsType    'CMND'    // Driver's HPXL ResDump command strings
  69.  
  70.  
  71. /* ============= 'stat' Resource ID's ============= */
  72.  
  73. #define    kUserAttentionID            gxPrintingDriverBaseID + 1    // Resource ID for the "User Attention" 'stat' alerts
  74.  
  75.  
  76. /* ============= 'cool' Resource ID's ============= */
  77.  
  78. #define    kManualFeedCoolAlrt            1                    // Relative resource ID for the manual feed 'cool' alert
  79.  
  80.  
  81. /* ============= Status Message Constants (used in statusID field) ============= */
  82.  
  83. #define    kManualFeedStatus            1        // Manual paper feed status message
  84. #define    kPrintingStatus                3        // Printing… status message
  85.  
  86. /* ============= Miscellaneous Constants ============= */
  87.  
  88. #define    ok                    1                //    Standard OK dialog button item number
  89. #define    cancel                2                //    Standard Cancel dialog button item number
  90.  
  91.  
  92.